<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap js-check-wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">角色管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a href="{:url('rbac/index')}">{:lang('ADMIN_RBAC_INDEX')}</a></li>
                                <li><a href="{:url('rbac/roleAdd')}">{:lang('ADMIN_RBAC_ROLEADD')}</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form action="{:url('Rbac/listorders')}" method="post" class="layui-form">
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <th width="40">ID</th>
                                                    <th align="left">{:lang('ROLE_NAME')}</th>
                                                    <th align="left">{:lang('ROLE_DESCRIPTION')}</th>
                                                    <th width="60" align="left">{:lang('STATUS')}</th>
                                                    <th width="160">{:lang('ACTIONS')}</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <foreach name="roles" item="vo">
                                                    <tr>
                                                        <td>{$vo.id}</td>
                                                        <td>{$vo.name}</td>
                                                        <td>{$vo.remark}</td>
                                                        <td>
                                                            <if condition="$vo['status'] eq 1">
                                                                <font color="red">√</font>
                                                                <else />
                                                                <font color="red">╳</font>
                                                            </if>
                                                        </td>
                                                        <td>
                                                        	<span class="layui-btn-group">
                                                        		<if condition="$vo['id'] eq 1">
                                                                <font class="layui-btn layui-btn-xs layui-disabled" color="#cccccc">{:lang('ROLE_SETTING')}</font> <!-- <a href="javascript:openIframeDialog('{:url('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a> | -->
                                                                <font class="layui-btn layui-btn-xs layui-btn-normal layui-disabled" color="#cccccc">{:lang('EDIT')}</font>
                                                                <font class="layui-btn layui-btn-xs layui-btn-danger layui-disabled" color="#cccccc">{:lang('DELETE')}</font>
                                                                <else />
                                                                <a class="layui-btn layui-btn-xs" href="{:url('Rbac/authorize',array('id'=>$vo['id']))}">{:lang('ROLE_SETTING')}</a>
                                                                <!-- <a href="javascript:openIframeDialog('{:url('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a>| -->
                                                                <a class="layui-btn layui-btn-xs layui-btn-normal" href="{:url('Rbac/roleedit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                                                                <a class="layui-btn layui-btn-xs layui-btn-danger js-ajax-delete" href="{:url('Rbac/roledelete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                                                            </if>
                                                        	</span>
                                                        </td>
                                                    </tr>
                                                </foreach>
                                            </tbody>
                                        </table>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>